$OpenBSD: patch-configure_in,v 1.4 2008/07/19 11:58:58 espie Exp $
--- configure.in.orig	Wed Jul 16 21:05:58 2008
+++ configure.in	Sat Jul 19 11:40:08 2008
@@ -176,7 +176,7 @@ then
     saved_cflags="$CFLAGS"
     saved_ldflags="$LDFLAGS"
     saved_libs=$LIBS
-    LIBS="$LIBS -llcms"
+    LIBS="$LIBS -llcms -lm"
     CFLAGS="$CFLAGS $all_includes"
     LDFLAGS="$LDFLAGS $all_libraries"
     AC_TRY_LINK([
@@ -188,7 +188,7 @@ choke!
 ], [
 cmsOpenProfileFromFile("foo", "r");
 ],
-        [LCMS_LIBS='-llcms'; have_lcms='yes'])
+        [LCMS_LIBS='-llcms -lm'; have_lcms='yes'])
     LIBS=$saved_libs
     CFLAGS=$saved_cflags
     LDFLAGS=$saved_ldflags
